ti.tab=function(name,newActive){
	var curTab = 0;
	var obj;
	obj = ti('tab_'+name+'_'+curTab);
	while(obj){
		//alert(curTab);
		var classes = ti.getClasses(obj);
		if(classes['tab_active'] && curTab != newActive){
			ti.toggleCssClass(obj,'tab_active');
			ti.toggleCssClass(ti('tabBody_'+name+'_'+curTab),'tab_body_active');
		}else if(curTab == newActive){
			ti.toggleCssClass(obj,'tab_active');
			ti.toggleCssClass(ti('tabBody_'+name+'_'+curTab),'tab_body_active');
		}
		curTab++;
		obj = ti('tab_'+name+'_'+curTab);
	}
}